package com.bwie.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.FanoutExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @Auther:${涛}
 * @Date:2024/9/2 11:51
 * @Description: RabbitMq
 * @Version 1.0.0
 */
//@Configuration
//public class RabbitMq {
//
//
//    @Bean
//    public Queue queue() {
//        return new Queue("0902", true);
//    }
//
//
//    @Bean
//    public FanoutExchange fanoutExchange() {
//        return new FanoutExchange("2202-09-02", true, false);
//    }
//
//    @Bean
//    public Binding binding() {
//        return BindingBuilder.bind(queue()).to(fanoutExchange());
//    }
//}


